<template>
  <div class="not-found">
    <div class="error-container">
      <h1 class="error-code">404</h1>
      <div class="error-text">
        <h2>页面未找到</h2>
        <p>抱歉，您访问的页面不存在或已被移除</p>
        <el-button type="primary" @click="goHome">返回首页</el-button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'NotFound',
  methods: {
    goHome() {
      this.$router.push({ path: '/' });
    }
  }
}
</script>

<style scoped>
.not-found {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f8f9fa;
}

.error-container {
  display: flex;
  align-items: center;
  max-width: 800px;
  padding: 40px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.error-code {
  font-size: 120px;
  font-weight: 700;
  color: #409EFF;
  margin: 0 40px 0 0;
  line-height: 1;
}

.error-text {
  text-align: left;
}

.error-text h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #303133;
}

.error-text p {
  font-size: 16px;
  color: #606266;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .error-container {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .error-code {
    margin: 0 0 20px 0;
    font-size: 100px;
  }
  
  .error-text {
    text-align: center;
  }
}
</style> 